package com.rj.framework.validation;

import jakarta.validation.Payload;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * 标记注解，表示验证器需要上下文信息
 */
@Target(TYPE)
@Retention(RUNTIME)
public @interface ContextAwareValidation {
    Param[] params() default {};
    // 指定验证分组
    Class<?>[] groups() default {};
    Class<? extends Payload>[] payload() default {};
}